From: Glenn Morris Date: Wed, 2 Sep 2009 03:21:26 +0000 (+0000) Subject: (emacs-uptime, emacs-init-time): Use float-time rather than time-to-seconds. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~10705 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=ab2f552fef91d13209e5fa87fc755004599fb71c;p=emacs.git (emacs-uptime, emacs-init-time): Use float-time rather than time-to-seconds. --- diff --git a/lisp/time.el b/lisp/time.el index 1d0b951e4a4..2ff840db762 100644 --- a/lisp/time.el +++ b/lisp/time.el @@ -560,7 +560,7 @@ For example, the Unix uptime command format is \"%D, %z%2h:%.2m\"." (interactive) (let ((str (format-seconds (or format "%Y, %D, %H, %M, %z%S") - (time-to-seconds + (float-time (time-subtract (current-time) before-init-time))))) (if (interactive-p) (message "%s" str) @@ -572,7 +572,7 @@ For example, the Unix uptime command format is \"%D, %z%2h:%.2m\"." (interactive) (let ((str (format "%.1f seconds" - (time-to-seconds + (float-time (time-subtract after-init-time before-init-time))))) (if (interactive-p) (message "%s" str)